
package game.view
{
	import laya.ui.Image;
	
	/**
	 * 子弹类
	 *@date 2017-2-20 下午5:49:24
	 *@author zhouhonghui
	 */
	public class Bullet extends Image
	{
		private var _type:int;
		private var _speed:int=10;
		public function Bullet(skin:String=null)
		{			
			super(skin);
		}
		/**
		 * 设置子弹类型  
		 * @param type 1我方 2敌方
		 * 
		 */		
		public function seType(type:int):void
		{
			skin = "war/bullet"+type+'.png';
		}

		public function get speed():int
		{
			return _speed;
		}

		public function set speed(value:int):void
		{
			_speed = value;
		}
		
		public function isOut():Boolean
		{
			return y<=100;
		}
		
	}
}